package org.suk.dp.visitor.impl;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.suk.dp.user.impl.Student;
import org.suk.dp.user.impl.Teacher;
import org.suk.dp.visitor.Visitor;

/**
 * @description: 家长
 * @Date : 2020/12/31 11:57 AM
 * @Author : 石冬冬-Seig Heil
 */
public class Parent implements Visitor {

    private Logger logger = LoggerFactory.getLogger(Parent.class);

    @Override
    public void visit(Student student) {
        logger.info("[学生信息]姓名：{},班级：{},排名：{}", student.name, student.clazz, student.ranking());
    }

    @Override
    public void visit(Teacher teacher) {
        logger.info("[老师信息] 姓名：{},班级：{},级别：{}", teacher.name, teacher.clazz, teacher.identity);
    }

}
